﻿using UnityEngine;
using System.Collections;
namespace Controller
{
    public class MenuController
    {
        private SubMenu sbMenu;
        private ChangedHud _chHud;
        private Element medikt;
        private Element bag;
        private UIToolkit _utFont;

        public ChangedHud ChHUD
        {
            get { return _chHud; }
            set { _chHud = value; }
        }

        public UIToolkit UtFont
        {
            get { return _utFont; }
            set { _utFont = value; }
        }

        public void OpenAndCloseSubMenu(UIButton sender)
        {
            if (sbMenu == null)
            {
                sbMenu = new SubMenu();
                sbMenu.UiFont = UtFont;
                sbMenu.InitializeControls();
                sbMenu.Hide();
            }
            if (sbMenu.GetStateShow())
                sbMenu.Show();
            else
                sbMenu.Hide();
        }

        public void ChangeText()
        {
            ScreenGeneral.Neko.GetMoney(10);
        }

        /*
    public void CallSubMenu(UIButton sender)
    {
        medikt = new Element();
        medikt.Name="Medikt";
        medikt.ImageUp="btnAzul.png";
        medikt.ImageDown="btnNegro.png";
        medikt.Add(10);
        ScreenGeneral.Neko.inInventory.AddElement(medikt);
        bag = new Element();
        bag.Name="Bag";
        bag.ImageUp="btnNegro.png";
        bag.ImageDown="btnAzul.png";
        bag.Add(8);
        ScreenGeneral.Neko.inInventory.AddElement(bag);
        ChHUD.UpdateHUD();
    }*/

    }
}